﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Reflection;
using Pixysoft.Weblications.Sango.Protocol.stage;
using Pixysoft.Weblications.Sango.Protocol;
using Pixysoft.Weblications.Sango.Dao;

namespace Pixysoft.Weblications.Sango.Command.stage_rve
{
    partial class SangoStageRveHandler
    {
        public stagerve_resultlist stagerve_resultlist()
        {
            string userCode = SangoManager.Authentication();
            stagerve_resultlist response = ReflectionManager.CreatePojo<stagerve_resultlist>();
            response.Succeed = false;

            response.rves = StageFacade.ToRveBattles(UsrRveBattleDao.GetRveBattles(userCode));
            response.Succeed = true;
            return response;
        }
    }

    public interface stagerve_resultlist : ISangoResponse
    {
        List<stage_rvebattle> rves { get;set;}
    }
}
